package com.base.app_core.service.rx;

/**
 * Created by quantan.liu on 2017/3/11.
 */

public class RxCart {
    //因为事件很多，没想到更好的办法只能用一个变量去判断事件了。不然同时注册多个事件感觉更不优雅

    public int cartEventType = 0;

    public static  final int CART_CHECK = 1;//点击item的check

    public static  final int CART_AMOUNT = 2;//选择- +的按钮

    public static  final int CART_CHECK_EDIT = 3;//编辑状态下，点击item的check

    public static  final int CART_EDIT_AMOUNT = 4;//编辑状态下，选择- +的按钮


    private RxCart(){}
    public static RxCart getInstance(){
        return RxCartGoodsHolder.M_RX_CART;
    }
    private static class RxCartGoodsHolder{
        private static final RxCart M_RX_CART = new RxCart();
    }
    public int getCartEventType() {
        return cartEventType;
    }

    public void setCartEventType(int cartEventType) {
        this.cartEventType = cartEventType;
    }
}
